﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Data;
using System.Reflection;
using System.Runtime.Serialization;
using System.Data.Objects;

namespace GTServices.Entities
{
    public class Classification : BaseEntity
    {
        [Key]
        public Guid   Id             { get; set; }
        public String Name           { get; set; }
        public String ReferenceUrl   { get; set; }
        public String Description    { get; set; }

        public Classification()
        {
            Id = Guid.NewGuid(); 
            this.Name = "OWasp A1";
            this.ReferenceUrl = "http://www.owasp.com";
            this.Description = ""; 
        }

        public override void Validate()
        {
            throw new NotImplementedException();
        }

        public override bool Equals(object obj)
        {
            if (!(obj is Classification))
            {
                return false;
            }
            return (obj as Classification).Id == this.Id;
        }
    }
}
